﻿<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8" />
    <title>登录检测</title>
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/admin_index.js"></script>
    <script>
        $(function () {
            loadOauth();
        })
        //同步
        function loadOauth() {
            var weappCookie = getCookie("bma");
            if (weappCookie == null || weappCookie == "") {
                var username = getCookies("shtusers", "UserName");
                var agentname = getCookies("shtusers", "agentname");
                var ugroup = getCookies("ugroup", "grouptype");
                var url = "/account/DybLogin?username=" + username + "&agentname="
                if (agentname != '')
                    url += agentname;
                if (ugroup.indexOf("18") > -1 || ugroup.indexOf("20") > -1)
                    url += "&ak=dis"
                url += "&redirect=" + encodeURIComponent("/admin_store/login_info.html");
                console.log("重试登录 url:" + url);
                $("#iframeOauth").attr("src", url);
            } else
                console.log("已登录");
        }
    </script>
</head>
<body>
    <div style="display:none">
        <iframe id="iframeOauth" src="" width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>
    </div> 
</body>
</html>